-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow static DNS hostnames ending in a . to be queried #19015
Allow static DNS hostnames ending in a . to be queried #19015
Conversation
This allows them to be queried
this isn't working for me, I'm not sure if I've done something wrong
Edit: I actually can't resolve anything might be an env issue |
Oh I forgot to mention you need the static resolver to be at the top of the list so it's looked up there first. I can see in your output you have no resolvers set. Try running |
oh yep that's working now, totally user error but some message saying why it's not resolving might be worth adding in the future 😓 |
Totally working now
I think it's unrelated to this pr but when I add
|
Does it show up if you do a |
yup that did it, didn't realise it only reads that in once, happy to land this now |
Release NotesPreviously, we fixed an issue where Metasploit would crash while parsing the |
Since #19012 was landed, static hostnames that end in a
.
can be defined which fixed an issue that could prevent Metasploit from starting. Since the query mechanism that static hostnames uses operates on a packet object though, the name will never end in a dot meaning these hostnames can't be queried. This fixes that by deleting any.
suffix that could be in place as part of the normalization (downcasing).Testing
.
(e.g.dns add-static test. 127.1.1.1
)dns query test.
.
, rundns query test